package mysql

import "gorm.io/gorm"

type Cart struct {
	gorm.Model
	UserID     uint   `gorm:"type:int(11);not null;index;comment:用户id"`
	GoodsID    int64  `gorm:"type:int(11);not null;index;comment:商品id"`
	GoodsTitle string `gorm:"type:varchar(100);not null;index;;comment:商品标题"`
	GoodsPrice int64  `gorm:"type:int(11);not null;default:0;comment:商品单价"`
	GoodsNum   int64  `gorm:"type:int(11);not null;default:0;comment:数量"`
	Checked    int8   `gorm:"type:tinyint(1);not null;default:1;comment:1选中 2 未选中"`
}
